﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GH.BLL;


public partial class VipFamilyAdd : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnAdd_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                GH.Model.会员家属信息 model = new GH.Model.会员家属信息();
                //model.ID = ID;
                model.序号 = 1;
                model.姓名 = txt姓名.Text;
                model.与本人关系 = txt与本人关系.Text;
                model.出生年月日 = System.DateTime.Now;
                model.工作单位 = txt工作单位.Text;
                model.月收入 = int.Parse(txt月收入.Text);
                model.婚姻状况 = txt婚姻状况.Text;
                model.供养关系 = txt供养关系.Text;
                model.领取项目 = txt领取项目.Text;
                model.现住址 = txt现在住址.Text;

                VipMemberFamily bllVipMemberFamily = new VipMemberFamily();
                bllVipMemberFamily.Add(model);
                AlertMessage("更新成功");
            }
            catch
            {
                AlertMessage("更新失败");
            }
        }

       
    }
